
Public Member Functions | |
| TreeAdminStudent () | |
| moveNode ($tomoveid, $destinationid) | |
| isValidMove ($tomove, $dest) | |
| duplicateCourse ($courseid, $destinationid) | |
| newNode ($parentid, $caption, $description=NULL) | |
| newLeaf ($parentid, $courseid, $caption, $description=NULL) | |
| createNode ($parentid=NULL, $courseid=NULL, $caption=NULL, $description=NULL, $type=NULL) | |
| editNode ($nodeId, $newCaption=NULL, $newDescription=NULL) | |
| deleteNode ($nodeId) | |
| newNodeInputMask ($parentId) | |
| editNodeInputMask ($nodeId) | |
| confirmDelete ($nodeId) | |
| getNewNodeForm ($parentId) | |
| getEditNodeForm ($nodeId) | |
| getConfirmationForm ($text, $action) | |
| getNodeIdByCourseId ($courseid) | |
| isValidEcom ($id) | |
| TreeAdminStudent::confirmDelete | ( | $ | nodeId | ) |
| TreeAdminStudent::createNode | ( | $ | parentid = NULL, |
|
| $ | courseid = NULL, |
|||
| $ | caption = NULL, |
|||
| $ | description = NULL, |
|||
| $ | type = NULL | |||
| ) |
Erstellt einen neuen Eintrag in der coursetree Tabelle. private
| $parentid | int Die ID des übergeordneten Eintrags | |
| $courseid | int Die ID des Kurses auf den Verwiesen wird | |
| $caption | string Der Name des Knotens | |
| $description | string Die Beschreibung des Knotens | |
| $type | string Der Typ des Eintrags (um welche Organisationseinheit handelt es sich?) |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::deleteNode | ( | $ | nodeId | ) |
Entfernt einen Knoten aus dem Baum. public
| $nodeid | int Die ID des Knotens der gelöscht werden soll |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::duplicateCourse | ( | $ | courseid, | |
| $ | destinationid | |||
| ) |
Macht einen vorhandenen Kurs an einer anderen Stelle verfügbar. public
| $courseid | int Die ID des Kurses | |
| $destinationid | int Die ID des zukünftigen Elternelements |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::editNode | ( | $ | nodeId, | |
| $ | newCaption = NULL, |
|||
| $ | newDescription = NULL | |||
| ) |
Bearbeitet einen Knoten im Baum. public
| $nodeid | int Die ID des Knotens der bearbeitet werden soll | |
| $newCaption | string NULL oder die neue Bezeichnung | |
| $newDescription | string NULL oder die neue Beschreibung |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::editNodeInputMask | ( | $ | nodeId | ) |
Zeigt das Eingabeformular für einen neuen Knoten an. public
Implements InterfaceTreeAdmin.
| TreeAdminStudent::getConfirmationForm | ( | $ | text, | |
| $ | action | |||
| ) |
Gibt das PEAR HTML_QuickForm Formular für einen bestätigungs Dialg zurück. public
| $text | string Dialog-Text | |
| $action | string Ziel für das Formular |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::getEditNodeForm | ( | $ | nodeId | ) |
Gibt das PEAR HTML_QuickForm Formular zum editieren eines Knotens zurück. public
| $parentId | int Die ID des Knotens zum editieren |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::getNewNodeForm | ( | $ | parentId | ) |
Gibt das PEAR HTML_QuickForm Formular zum anlegen eines neuen Knotens zurück. public
| $parentId | int Die ID des übergeordneten Knotens |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::getNodeIdByCourseId | ( | $ | courseid | ) |
Gibt die node-id zu einem verknüpften Kurs zurück.
| $courseid | int Die Kurs ID |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::isValidEcom | ( | $ | id | ) |
Überprüft ob der Knoten ein eCommunity Knoten ist
| $id | int Datenbank ID |
| TreeAdminStudent::isValidMove | ( | $ | tomove, | |
| $ | dest | |||
| ) |
Überprüft ob eine geplante verschiebe Aktion im Baum einen gueltigen Baum hinterlaesst.
Implements InterfaceTreeAdmin.
| TreeAdminStudent::moveNode | ( | $ | tomoveid, | |
| $ | destinationid | |||
| ) |
Verschiebt den Eintrag mit der ID $tomoveid im Baum als Kind des Knotens mit der ID $destinationid. public
| $tomoveid | int Die ID des zu verschiebenenden Eintrags | |
| $destinationid | int Die ID des zukünftigen Elternelements |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::newLeaf | ( | $ | parentid, | |
| $ | courseid, | |||
| $ | caption, | |||
| $ | description = NULL | |||
| ) |
Erstellt einen neuen Knoten vom Typ "Blatt" im Baum. (In unserem Fall ein "Kurs"); public
| $parentid | int Die ID des Übergeordneten Knotens | |
| $courseid | int Die ID des Kurses auf den dieser Eintrag verweist | |
| $caption | string Der Name des Eintags | |
| $description | string Die Beschreibung des Eintrags |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::newNode | ( | $ | parentid, | |
| $ | caption, | |||
| $ | description = NULL | |||
| ) |
Erstellt einen neuen Knoten im Baum. public
| $parentid | int Die ID des Übergeordneten Knotens | |
| $caption | string Der Name des Eintags | |
| $description | string Die Beschreibung des Eintrags |
Implements InterfaceTreeAdmin.
| TreeAdminStudent::newNodeInputMask | ( | $ | parentId | ) |
Zeigt das Eingabeformular für einen neuen Knoten an. public
Implements InterfaceTreeAdmin.
| TreeAdminStudent::TreeAdminStudent | ( | ) |
Default-Konstruktor. public
1.5.8